package com.emep.changzhi.analyse.repository.datamonitor.day;

import com.emep.changzhi.analyse.entity.datamonitor.day.DataDayAirquality;
import org.springframework.data.cassandra.repository.CassandraRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;


/**
 * @author yangj
 * @version V1.0
 * @Description: 空气质量_日数据表持久层
 * @date 2018/2/27  14:58
 */
public interface DataDayAirqualityRepository extends CassandraRepository<DataDayAirquality,Long> {

    @Query("select * from data_day_airquality limit :pageSize")
    List<DataDayAirquality> airQualityHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_day_airquality where token(id)>token(:id) limit :pageSize")
    List<DataDayAirquality> airQualityFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
